package com.lmz.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lmz.common.utils.PageUtils;
import com.lmz.product.VO.Roots.SpuSaveVo;
import com.lmz.product.entity.SpuInfoEntity;

import java.util.Map;

/**
 * spu信息
 *
 * @author lmz
 * @email ${email}
 * @date 2022-04-17 16:09:59
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSpuInfo(SpuSaveVo vo);

    void saveBaseSpuInfo(SpuInfoEntity spuInfoEntity);

    PageUtils queryPageByCondition(Map<String, Object> params);

    void up(Long spuId); //商品上架

    SpuInfoEntity getSpuInfoBySkuId(Long id);
}